package com.foreknow.springboot_demo.service.Impl;

import com.foreknow.springboot_demo.mapper.BusinessMapper;
import com.foreknow.springboot_demo.po.Business;
import com.foreknow.springboot_demo.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {
    //依赖注入
    @Autowired
    private BusinessMapper businessMapper;

    @Override
    public List<Business> listBusinessByOrderTypeId(int orderTypeId) {
        return businessMapper.listBusinessByOrderTypeId(orderTypeId);
    }

    @Override
    public Business getBusinessById(int businessId) {
        return businessMapper.getBusinessById(businessId);
    }
}
